<link rel="stylesheet" type="text/css" href="{echo:__WEBPATH__}plugins/slick-carousel/slick/slick.css"/>
<link rel="stylesheet" type="text/css" href="{echo:__WEBPATH__}plugins/slick-carousel/slick/slick-theme.css"/>
<link rel="stylesheet" type="text/css" href="{echo:__WEBPATH__}css/style.css"/>

<!-- 主菜单导航 -->
<nav class="navbar navbar-light navbar-expand-sm">
    <div class="container">
        <button type="button" class="navbar-toggler border ml-auto" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-label="Toggle navigation">
            <i class="fa fa-bars"></i>
        </button>

        <div id="navbar" class="navbar-collapse collapse">
            <ul class="navbar-nav">
                <li class="nav-item"><a class="nav-link" href="{url:/site/home/id/$seller_id}">首页</a></li>
                {foreach:items=Api::run('getGuideList',$seller_id)}
                <li class="nav-item"><a class="nav-link" href="{url:$item['link']}">{$item['name']}</a></li>
                {/foreach}
            </ul>

            <form class="form-inline ml-auto" method="get" action="{url:/}">
                <input type='hidden' name='seller_id' value='{$seller_id}' />
				<input type='hidden' name='controller' value='site' />
				<input type='hidden' name='action' value='seller_goods_list' />
                <div class="input-group">
                    <input type="text" name="word" class="form-control" autocomplete="off" value="" placeholder="搜索店内商品" />
                    <div class="input-group-append">
                        <button class="btn btn-outline-primary" type="submit"><i class="fa fa-search"></i></button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</nav>
